package cn.usian.mapper;

import cn.usian.pojo.Lessee;
import cn.usian.vo.LesseeVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//@Mapper
public interface LesseeMapper extends BaseMapper<Lessee> {

    Page<LesseeVo> findPage(Page<LesseeVo> page,@Param("vo") Lessee lessee);

    @Select(" select * from lessee where id=#{id} ")
    Lessee findById(Long id);
}
